<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set value="${pageContext.request.contextPath}" scope="page" var="ctx"></c:set>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String currRequestURL="";

	try{
		currRequestURL = request.getRequestURL().toString();
	}catch(Exception e){
	}
	System.out.println("currRequestURL:"+currRequestURL);
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="../../css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<div class="layui-form layuimini-form">
    <div class="layui-form-item">
        <label class="layui-form-label">工程编号</label>
        <div class="layui-input-block">
            <input type="text" name="Project_ID" lay-verify="required" lay-reqtext="工程编号不能为空" placeholder="请输入工程编号" value="" class="layui-input">
        </div>
    </div>
    
     <div class="layui-form-item">
        <label class="layui-form-label">班组的名称</label>
        <div class="layui-input-block">
            <input type="text" name="team_name" placeholder="请输入班组名称" value="" class="layui-input">
        </div>
    </div>
    
    
    <div class="layui-form-item">
        <label class="layui-form-label">班组类型</label>
        <div class="layui-input-block">
            <input type="text" name="team_type_order" placeholder="请输入班组类型" value="" class="layui-input">
        </div>
    </div>
                
                 <div class="layui-form-item">
        <label class="layui-form-label">班组类型名称</label>
        <div class="layui-input-block">
            <input type="text" name="team_type_order" placeholder="请输入班组类型名称" value="" class="layui-input">
        </div>
    </div>
   
    <div class="layui-form-item">
        <label class="layui-form-label">请输入单位名称</label>
        <div class="layui-input-block">
            <input type="text" name="emp_company" placeholder="所属单位名称（填写单位的全称，以实名制系统录入的为准）。" value="" class="layui-input">
        </div>
    </div>
    
    <div class="layui-form-item">
        <label class="layui-form-label">所属单位社会统一信用代码</label>
        <div class="layui-input-block">
            <input type="text" name="SUID" placeholder="请输入社会统一信用代码" value="" class="layui-input">
        </div>
    </div>
    

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</div>
<script src="../../lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script>

    
    layui.use(['form'], function () {
        var form = layui.form,
            layer = layui.layer,
            $ = layui.$;

        //监听提交
        form.on('submit(saveBtn)', function (data) {
            var index = layer.alert(JSON.stringify(data.field), {
                title: '最终的提交信息'
            }, function () {

                // 关闭弹出层
                layer.close(index);

                var iframeIndex = parent.layer.getFrameIndex(window.name);
                parent.layer.close(iframeIndex);

            });

            return false;
        });

        
        function initSelect(){
        	var strHtml = "<option value=''>请选择</option>";
        	 $.ajax({
       	      type: "POST",
       	      url: "../../../page/AddTeam",
       	      dataType:"json",
       	      contentType : "application/json;charset=UTF-8",
       	      data: '{}',
       	      success: function (res) {
       	    	 
       	      }
        	 });
            
        }
//         <option value=''>请选择</option>
        
        
        	initSelect();
        
    });
</script>
</body>
</html>